package cn.edu.scau.cmi.zenghaonan.chapter06;

class AAA{
	double f(double x,double y) {
		return x+y;
	}
}

class BBB extends AAA{
	double f(int x,int y) {
		return x*y;
	}
}

public class E {
	public static void main(String[] args) {
		BBB b=new BBB();
		System.out.println(b.f(3, 5));
		System.out.println(b.f(3.0, 5.0));
	}
}
